//banner轮播
var t = n = 0;
var count;
function bannerInit() {
    count = $(".banner_list a").length;
    $(".banner_list a:not(:first-child)").hide();
    t = setInterval("showAuto()", 4000);
    $(".banner").hover(function () {
            clearInterval(t)
        },
        function () {
            t = setInterval("showAuto()", 4000);
    });
}
function showList(m) {
    var i = m;
    n = i;
    if (i >= count) return;
    $(".banner_list a").filter(":visible").fadeOut(500).parent().children().eq(i).fadeIn(500);
    $(".banner li").eq(i).toggleClass("on").siblings().removeAttr("class");
}
function showAuto() {
    n = n >= (count - 1) ? 0 : ++n;
    showList(n);
}


